<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.trade.ti_collect.*" %>
<%@page import="java.util.*" %>
<%@ page import="com.lmpop.trade.tb_commpara.*"%> 
<html>
  <head>
    
    <title>会员收藏管理</title>
	<script type="text/javascript" src="index.js"></script>
</head>

<body>

  <% 
  	String trade_id="";
  	if(request.getParameter("trade_id")!=null) trade_id = request.getParameter("trade_id");
  	Ti_collectInfo ti_collectInfo = new Ti_collectInfo();
  	List list = ti_collectInfo.getListByPk(trade_id);
  	Hashtable map = new Hashtable();
  	if(list!=null && list.size()>0) map = (Hashtable)list.get(0);
  	
  	String cust_id="",title="",info_url="",info_type="",in_date="",user_id="";
  	if(map.get("cust_id")!=null) cust_id = map.get("cust_id").toString();
  	if(map.get("title")!=null) title = map.get("title").toString();
  	if(map.get("info_url")!=null) info_url = map.get("info_url").toString();
  	if(map.get("info_type")!=null) info_type = map.get("info_type").toString();
  	if(map.get("in_date")!=null) in_date = map.get("in_date").toString();
  	if(map.get("user_id")!=null) user_id = map.get("user_id").toString();
    
	String oper_user_id="";
	if(session.getAttribute("session_user_id")!=null){
		oper_user_id  = session.getAttribute("session_user_id").toString();
	} 
	String oper_cust_id="";
	if(session.getAttribute("session_cust_id")!=null){
		oper_cust_id  = session.getAttribute("session_cust_id").toString();
	} 
	 Tb_commparaInfo compara = new Tb_commparaInfo();
	String selectString = compara.getSelectItem("79",info_type);
  %>
	
	<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#eddfea">

		<tr>

		  <td width="5%" height="40" align="center"><img src="/program/member/index/images/icon1.gif" ></td>

		  <td width="85%"><h3>修改会员收藏</h3></td>

		</tr>

	  </table>
	<!--
	<table width="100%" align="center" cellpadding="0" cellspacing="0" class="dl_so">
        <tr>
          <td width="9%" align="center"><img src="/program/admin/index/images/ban_01.gif" /></td>
          <td width="91%" align="left">
		  <h4>-----------------</h4>
		  <span>1----------------。</span><br/>
		  <span>2----------------。</span>
		  </td>
        </tr>
      </table>
      <br/>
	  -->
	
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
		<!--
		<tr>
			<td align="right" width="10%">
				会员名<font color="red">*</font>
			</td>
			<td><input name="cust_id" id="cust_id" size="20" maxlength="20" value="<%=cust_id %>" type="text" /></td>
		</tr>
		-->
		<tr>
			<td align="right" width="10%" class="art_col">
				收藏标题<font color="red">*</font>
			</td>
			<td><input name="title" id="title" size="50" maxlength="40" value="<%=title %>" type="text" /></td>
		</tr>
		
		
		<tr>
			<td align="right" width="10%" class="art_col">
				收藏类型<font color="red">*</font>
			</td>
			<td  align="left">
				<select name="info_type" id="info_type" >
					<option value="">请选择</option>
					<%=selectString%>
				</select>
			</td>
		</tr>
		
		<tr>
			<td align="right" width="10%" class="art_col">
				收藏地址:
			</td>
			<td><input name="info_url" id="info_url" size="50" maxlength="40" value="<%=info_url %>" type="text" /></td>
		</tr>
		

	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input name="cust_id" id="cust_id" type="hidden" value="<%=oper_cust_id%>" />
				<input name="user_id" id="user_id" type="hidden" value="<%=oper_user_id%>" />

				<input type="hidden" name="bpm_id" value="3605" />
	  			<input type="hidden" name="trade_id" value="<%=trade_id %>" />
				<input type="submit" class="button2" name="tradeSub" value="提交" onClick="return checkSub();"/>&nbsp;&nbsp;
				<input type="button" class="button2" name="tradeRut" value="返回" onClick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
